json: update expected error in unit test