Fix https://github.com/jbox-web/redmine_git_hosting/issues/311
Fix deprecation warning
Add test for Project