Add test checking unique results from query