A test to reproduce issue in RESTWS-401

I believe this test reproduces the issue in question (https://tickets.openmrs.org/browse/RESTWS-401).