Moved package directory creation to storage class.
Moved package name check to PackageManager class.
Fixed errors in test logic.
Moved package dir removal to storage class.