Adding unit test for snap-toggle

Removing comments