refactor RSpec tests for easier reading