CTS Memory tests fix invalid allocation sizes