[junit] add flag to check test class