Fix ReaderTest and fix crash on merging contexts