Improved solution to issue #330: Implement RtHooksITCase.canFetchAllHooks

Note:

Because of: #353, integration tests may be failing. However, running only the test method RtHooksITCase.canFetchAllHooks() correctly verifies if iterating through all the hooks works.