#28: add subtree tests, fixes

This addresses part of #28. It adds subdirectory working copy tests and some fixes.

@matthewrmshin, please review.