Adding snap-close directive
Add snap-close test
test: Add tests for snap-close directive