reverted change in max_assignment_cost that broke the tests, but there is something wrong here