Move the hooks test involving a closure to a separate file so it may be isolated for PHP 5.3+. see [862]. fixes #101.