Added tests for tree store. Closes #76.