Added async-test and removal of deprecation warning.