Application class fixes. New Application tests. Window class fixes. BaseClass fixes.