JSON tests allow for checking errors