added show document test and fix others