Fix max rule test