Add a tap debug method and tests