Add tests for inheritance across (real) packages

More tests to come, this is essentiall just the infrastructure
to create, install and load temporary packages in tests.