Fix tests with different length strings to look for undefined result, rather than zero.