I'm not sure I understand well you question, but if you want create different policies for different env, then just create one policy for your production env (with prod addresses as source or destination) and another policy for your test env (with test env addresses as source or destination).