Fix string type tests.
Merge pull request #1959 from kdeldycke/basestring-test

Fix string instance tests. Fixes #1959.