integrate unit test for baseLoop and ValidatorTrait
create test for ValidatorTrait
remove php5.3 compat
change some phpdoc