commit offer unit tests