validate class tests