Added operation to copy stream in test case