Some more unit tests for the `bagof/3` and `setof/3` methods