added tests for getInstance() method