fix build error of tests which shouldn't be executed