It looks like the test is calling the 2 parameter version of maximize. It looks like Autoscend is calling the 4 param version .
void equipMaximizedGear()
{
finalizeMaximize();
maximize(get_property("auto_maximize_current"), 2500, 0, false);
// below code is to help diagnose, debug...