more tests and fixed async races with a synchronous execution context

Signed-off-by: Joern Bernhardt <jb@campudus.com>