Mock tokens and spec file refactor

Adds mock tokens for easier test file setup.

Refactors a couple of files (not all) that used horrid syntax to define their `beforeEach` spec functions.

Works on #287