Made testing with matching characters more comprehensive