added handy createTree function
continuing to refactor tests
continuing to refactor tests
have a test case which does not pass