Wrote tests for commit models