To see if we react and how. It's like getting your little cousin to throw a rock at your neighbors house and letting him get in trouble for it. If no consequences, it's only a matter of time and you'll be able to do the same with impunity.
Maybe, but China has already threatened Taiwan with missiles a number of times. The results weren't the intended ones.