Test cases for LoadFile/OnLoadFile
Remove some useless ref params.
Adding some tests.
Prepare tests case, but mark them Inconclusive for the moment.