fix refactoring bug in shouldFail method
defineBeans immediately when this method is called
use @Artefact("Controller") for test controllers