fix testB to not rely on promises