Setting the heap size to 1 GiB for tests.