* improving DOM ranges test and silencing a warning * moving test_main to macros (even though it is not a macro) * moving test_main