Rollback when a duplicate request is made, and added tests for that