Custom nlu server for rasa testing

For end to end testing I have my custom nlu server hosted elsewhere how can I use that? Cause for daily usage I use /model/parse endpoint but for testing it shows no NLU server found. Hence it miss classifies intent. Also, how to specify domain file which is in separate folder? I get the error intent greet not available. But it is in my domain but not as per the folder structure. For daily usage I use --domain flag but that does not seem to work here.