Refactor tests

Refactors tests to use instance variables on `this` instead of variables at a higher scope. This causes a lot of things to be cleaned up automatically and makes tests more readable and self-contained.

**Changes**
- Refactored all tests to use `this` instead of variables
- Reordered some stuff within `beforeEach` blocks (values/setup - line break - do stuff)