Change tree commands to take options.
Add tree commands specs.
Add feature tests for tree commands.