tests for hooks not derived from generic_hook

https://svn.boost.org/trac/boost/ticket/9961