Fixes references.
fixes sequential running.
Only runs test after the hooks.
Fixes imports/stuff.