improve test for main frame; use lower-case for deskto object