unregister should return same value as unregister all files