fixing context bug in beforeEach