JRSEY-2197 Unit test to demonstrate the issue along with a working correction

I am in the process of submitting the contributor agreement.  Please contact me if there are any procedural hurdles I have failed to pass.