test PhWindow
all settings in AutoTestSettings
currentDocument test
fix various test problem