Added test code for parsing complex JSON messages