fix quantum printing tests