Updated ostream test