Changes in Registration logic
Add test for package registration