Memory calculation tests

[#56495606]