fix race condition in cucumber tests