fix broken tests
refactoring deprecated rails methods in project model