Extracted Users controller search method into a scope in User model. Refactored search bar form to use rails helpers. Added the user scope tests