fixed requires
added rspec for testing