Add PHPUnit dev dependency for unit tests
Cleaner logic with documentatin