Fix bug (missing getInstance()). Exception was not shown because tests were not rethrowing the exception