Add and modified tests for validate class