Add initial support for asynchronous tests