Adding custom IOSTREAM for libtest.