Add test for graphics output handler