added test snippet