Fix test input string and add pass function