Added revisions test
Don't decode json to object if not necessary
Added rename file