merge mainApp / required / state into mainApp
add code coverage
export initRepl
sync
manually call testRun()
sync
sync