Test Updates

Add some tests for the DOPAClient and just a bit bug fixes on the server side.