add total value to formatter callback function
add tests for check total value in formatter callback