Refactors test for project deletion.