Added rspec and test functionalities