test for non-local coupling added. Seems to work ok. Now for derivatives.