added basic Rspec tests
fixed warning while running the rspec