fix RSpec tests