Make rebar work from top.  Add more test cases.
Add more test cases.