What is and is not legal – When it is and isn’t legal to test?

What is and is not legal – When it is and isn’t legal to test