Test case for postgres group permissions