tests ported to phpUnit
Merge pull request #36 from panrafal/tests-phpunit

tests ported to phpUnit