add snippet test