Add unit test for #2
Unit test for #3
Allow search for scm root above project root