Add new test case and fix a bug