Graphics test and cleanup