added tests for collectWindowErrors