Access niceFormat statically to fix failed test