formatter: fix unit tests