Add unit tests for the `uses/2` predicate directive