This fixes unit tests, and also produces an artifact for deployment to teamcity