Added GC collect to test method