Extend include() test to check that command line API is unavailable to included files (related to issue 6551)