adding RSpec tests