Improving 2-palindrome tests