made LooseCommit a case class
added unit test for LooseCommit