Improves tests for NSOutputStream (ReactiveCryptor).