Added test for the newly found bug (and more) and fixed the bug.
Merge pull request #103 from kaspernj/kj/projects/add_new_bugfix

Projects: Add new bugfix