use unit test instead of rspec