add romaji test, refactor codes