additional test coverate. json_encode calls model getters