Moved JSON tests to separate .rs