improve test perf by deferring garbage collection

Our tests run noticeably faster by only running garbage collection every 15 seconds.
Inspired by: ariejan.net/2011/09/24/rspec-speed-up-by-tweaking-ruby-garbage-collection