test of async behaviour