Use sprint in printing tests