fix core tests' code style