Simplify _typeOfTest()