Adding backend specific tests, fixes for upstream ctree changes.