You may refuse
You have a right to refuse to be tested, or to require that your test results not be communicated to anyone. However, if you do refuse to participate in job-related assessment, the people who have to make decisions about you will not have all the information they need. This can potentially harm your chances if you are being tested for a position.