Third part permission test

cf ticket #13: Added test case for checking against a third part entity permissions to filter results.