engine/tests:

Added a test case for exercising the `_calc_to_response_data` util
function.