Suffix tree matching bug fixed and simple test added