snippet mode tests