Add some tests for GMemoryOutputStream.