Unify the test conversion
Add scalastyle to do the static checking