Refactor NewProjectDialogTest.testNewProjectDialog