add json for outputs, fix mock return value for tests