add more asserts for test cases.