Testing for rollback function