Tweaked code coverage
Added phpunit
Added validator unit test