[tstr] better coding on empty string test + js test case