Added test for custom formatter.