Some fixes and new tests to user indexing.
[bug 1006572] Implement contributor/user search.