added tests for debugging hook