unify nongraphics and graphics test