Fix test generation for prefixed controllers.