Adding a test for the NPE fix in AbstractSTSClient