[spring] fix tests