Fix segfault in loadDefinition
for unit tests
#705
Merged
loadDefinition
for unit tests
#705