Add tests and fix bugs according to test results.