tests for decimal elements when formatting Moment

see issue #170