conditional execution of agency tests