Add more test cases, and relax performance test.