User search testing and updates

This fixes #23 and adds testing.