[WIP] Validate hooks existence

Try avoiding mocking what you don't own.

I see two ways out of this is this situation.

1. Having a fixture YAML file which you point to in the test.
2. Passing parser as an optional argument in the object construction, YAML being the default.

Personally, I prefer the 1 because 2 makes things more complicated.