Add test cases.
Fix bugs with test case.
Fix schema.
Fix README.md.