Fix test cases to compare strings correctly