update of testbed code; post example works now