testing hook methods