added some unit testing
Merge pull request #28 from rocketu/backend

added some unit testing