Various fixes for projects test failure including a fix for a bug where projects are created with 0 images of only one deployment is selected.