Finished mocking tests for algorithm, tree node

Need to finish tests for abstract methods in these classes