Added explicit GC calls to try and help deal with memory usage during
testing