Ported test to RSpec