Updated test, and made commit return generated string