add beforeEach method in stopwatch spec