As json

Added unit tests for the output of Tenancy#as_json