fix rspec require and case statements
use modern RSpec syntax, fix performance spec
use be_within.of instead of be_close