Get unit tests passing for binary-based unit tests.
Handle gender correctly in findUser().
Remove unused imports.