add test snippet