[fixes #201] adds tests for TreeCPD