integrate unit test for baseLoop and ValidatorTrait
create test for ValidatorTrait