Add PHPUnit and some tests
Merge pull request #1 from yukisov/add-test

Add PHPUnit and some tests