add test for completing commitment