adding snippet tests