added tests for isPlainText