test the iostream class