Move the application create out of package import

Otherwise testing is hard...