added test for ToPlainString method