change rspec to plain unit tests