tests for TreeCPD #139