added test snippet for issue 271