Fix format and test.