Unit test for response conversion