Added a test of sub-tests on the utf8

Added a test to make sure that the file handle is not reset even after sub-test,
utf8 string is processed correctly.