Add appendToStream test