basic validation + phpunit test