Added test to ensure writes possible on existing stream and fixed ES implementation