Add tests

solves #7