Fixed SnapTest algorithm when snapSize == 0, minor edits to other files