test for building hooks.