open streams in test to avoid seg fault