Added RSpec tests