Test and abstraction

- Adding a test for updating tags (which was broken in last release).
- Add abstraction for what we send to the REST API vs. what we return.