DRY up module setup tests