Add core test boilerplate to some base.pm tests