Add tests, fix bugs.