added test cases for STS-3261
https://issuetracker.springsource.com/browse/STS-3261