Namespace import fix
Merge pull request #4 from ezsystems/master_tests

Fix phpunit errors on master
Added API tests