Fixed tests to conform to RSpec 3.1 style