Add unit test for std streams