Working tests

Yay it is now ready for NPM I think. :)