Add tests for async file replace and load