Adding method commitAndPushTest to test commit/push operation