Added tests on rspec