added check for PSA_TEST constant