added unit tests for async module setup and teardown