changed to use RSpec for testing.