The test infrastructure could have been hooked into the ddms port.
You could actually dump the heap from your test by calling android.os.Debug.dumpHprofData(). The test should run in the same process space as your app. Hence, it should work fine. Start taking the heap dumps in each test after the 45th test and you could probably get the heap dump that you need to analyze.