addding RSpec tests