Add constructor test for the package repository.
Complete some pending tests.