More fun

 - Ensure refs are only backed up when modified
 - Add test to ensure one cannot overlap an existing reference
 - Cleanup the tests
Merge pull request #452 from yorah/filter-branch

More fun