Added PHPUnit tests.
Merge pull request #3 from MonkDev/phpunit-tests

Added PHPUnit tests