Corrected string tests to basestring tests