snl bug fixed, test cases added
snl bug fixed, test cases added