refactoring: change hook parameter name refs #69
add test for controller hook refs #69