unit tests for externalizer.type