Moved package tests to files following the naming conventions used elsewhere. Added some missing tests.