Fixed a bug in testing.
Now able to calculate real GLM for test files.