Add unit tests
Merge pull request #1 from techdivision/master

Refactoring + add PHPUnit tests
Refactoring PHPUnit tests
Add new PHPUnit tests
Merge pull request #1 from wagnert/master

Add unit tests.