style fix + enhanced unit test for escaping load msg

for https://github.com/hpcugent/easybuild-framework/pull/1068