Fix beanshell unit test

Test if a graphic environment is available, if true continue the unit test