Add ability to wait until main thread is idle to Espresso main class