Added fix and integration tests GitHub Issue 25

Fix for [Issue 25](https://github.com/stormpath/stormpath-sdk-java/issues/25)