Update test to use Mocha's promise handling
Add tests for asynchronous method inference