Testing functionalities using rspec and cucmber