Tests for #3289, extended hook