Tidy up backdrop read/write smoke test

- Improve error messages
- Fix indentation
- Handle the case where the read api response is valid json but not
  formatted how we expect