minor bugfixes, additional junit test for externalizers