Fixed missing requires in test files

Missing requires in test files made them fail when run one at a time.
test_all.rb would sometimes fail when the test order changed, because of this.