added test_routine for psa class