polished RSpec tests