Moved from require() calls to define() calls in specs

This fixes the weird loading behaviour.

Signed-off-by: Gideon Farrell <me@gideonfarrell.co.uk>