Fix syntax of RSpec tests