Add new tests and add header files to IDE project.

Add new tests regarding JointProbabilities to CMakeLists.txt. Also add
custom target for header only implemntation, such that they show up in
the generated project files / project views.