hacky fix for async test which only works on the first run