Use explicit string comparison in test to try to resolve python2.6 issue.