More robust pending assertions.
Extra spec coverage for pending inside hooks.