move tests of reduce_inequalities to their own function