Add unit test for response transformation.