MAX_WORKERS test needs to be inclusive, not exclusive.