Add tests

If you can test this too, that would be good.