implemented numeral.newFactory, deprecation warning and tests