cmd/tsuru-base: add better test for previous jsonWriter bug

This tests would fail before d6b593f8bc8d06d8eac041faa252c7eef47843cb. I
should send it together with the jsonWriter change, sorry about that :-(