[tests] check reading source after close raises RuntimeError