Properly configured the load raw mat function.
Wrote the test correctly for load mat.