Added conditional flag for testify

Removed default setting and added in error message