Adding unit test for snap-toggle