Move App defer/advance readiness code to be exclusively in test_helper.js