Fix validity of tests