Added getFormatter and hasFormatter and tests for these methods