fixed tests for json (removed at the moment), refs #998"