remove begin and commit from tests