am 5794f230: change the way test app waits for gc

* commit '5794f2302209981c64425ea2b661b17f00b8f808':
  change the way test app waits for gc