using beforeEach to load class