Write a test suite

It would be great to write a testsuite for this project