Added rspec test.

Updated the validate the api key and project name parameters as well.