create unit test for response transformer object to array