Resolve #5 - check if the evironment is headless before the tests on AbstractFrame