move BST printing to test