JSON POST works and cleaned up test code a bit