Fixes RSpec tests