Writing the test case for a singleton