Test coverage; refactor code
Merge pull request #6 from seniorihor/tests_for_users_controller

Test coverage; refactor code