Added async testing code