Unit tests to reproduce Hook execution sequence issue.