Fixed bug in creating projects.
Added tests.
Merge branch 'spring'