[#63] Implemented rollback and added test case.