fix package name computation for maintenance release
fix singleton when using a subclass
print message for unexpected states

shouldn't happen in practice but maybe testsuite
mock test