Added rspec for unit testing