Add cucumber gem and refactory the rspec test cases