Implement test for getInstance method

Implemented test for `getInstance()` method based on JSessionTest