These changes are correct, the test looks wrong. That it worked before was accidental.