Edited file_loading unit test, integrated file loading into src code