test alter hook