update the coffetest to add some logic