Fix error due to assignment in test.