Align api of Duration with DataSize

Record DataSize unit so unit does not change with printing
Fixes for review feedback
Add constructor with environment and pool to TestingNodeModule