Fix some problems with unit tests: fix the no indexer available problem, and change the way users are instantized, remove unused import