Fix missing nested POST data values and add tests