cleaned up LooseTag and LooseCommit a bit; implemented unit test for LooseTag