fix test's middleclass relation