Test code for controller resolver type checking