Fixed messages in references tests.