fix code for test activation