Added let method in rspec tests.