eventloop tests and fixed asynchronous shell