refactored distribution spec to use test_object_helpers and refacted user_login method for simplicity