add for test string & inputstream
add some test method