improved Package system
test cases for the protocol package constructors