Fix setting expected value in translation tests

It was being set to nil instead due to the wrong assignment.