add unit tests for ?orphan-relations, ?exclude-relations and ?include-relations query params