Add test case to cover project.pre