Add rspec for unit testing