Set up testing using rspec and add initial unit tests.