Implement some test cases

Implement some test cases