Make module function calls asynchronous and update test script to match