added simple test cases.