Tests for JsonMapper