enable testing hook