Fix when the beforeEach callback is 'done'.
It was not waiting for the appropriate number of commands, and so was being marked as 'done' before addinitial had completed.