fix test if opencv build w/o gui