added asserts to test cases