Added file loading and unit tests thereof.