Add tests and readme.