Fix error in mass_inform() and add test for it