Make backdrop smoke tests more robust

- Check the status code of the write API response
- Parse the write API response as JSON
- Check that the status is "ok"
- Rename some of the variables to be a little more consistent