added unit test cases

added unit test cases