Moved beforeEach function into own file
Removed unnecessary requires in tests