Closes #204. Improved judgment indexing speed.

Maybe test if method returns more that one id. Also it would be better to test if created id equals id returned from repository.