Added test for policy exception through gateway