loadData now works properly on simpletest

loadData had issues in the fact that the code was moved away from its
original intent hence not working as intended.