TRQ-2971. Add a unit test.