test: fix tests depending on race condition

Move the call of `resetWorkspace` to the first `beforeEach` hook.
example: WIP