fixes #2887 and added test

updated pom file

added unit test

added test servers

fix #2887