Add specs for Model#as_json