test asynchronous input