Register controllers after registering blueprints

Turns out this was causing a lot of problems with registering rules.
Use pytest, pytest fixtures