Data layer tests and implementation for snippet update