formatter: adds unit tests for base 1000, fixes #4412