updated to RSpec style tests