PTFM-8631: Add tests and refactoring for resolution errors

This is for resolving to either a project or one or more data objects