Tests for json