update API usage in hooks test

Use new `Result` and `Project` API instead of reading from disk.
Use the `analogical_set` return value for now to check exclusion;
this will need work, but it needed work before, too.