Core: fix code style in unit test for #1223