Added tests

Addresses #30
Removed the redundancy. Thanks a lot, I had underestimated supertest, I am a wiser man now.