test: elevate magic numbers to common
There are several instances of 1024 and 1024 * 1024 in test cases. Defined constants in common module for easy consumption.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines