adds more tests for TreeCPD class
adds a ValueError condition