Fix sharing tests and update file bug