[TEST] Some improvements ValidateTest.java and the new class DefineTestLibrary.java