added unit test case for example