Added unittests for new photographer object

Also made some small changes to photographer object and photo object to
fix issues found with unittests.
Sonar Support

Modified the Unittests in such a way that they can be run automatically
from Sonar.
Merge branch 'sonar' into refactor