Correct the location of the extend statment for controller macros module in tests