Conditional marking of tests