This test is flawed in the sense that it makes assumptions on the amount of available memory and may fail if there's too much of it (as it expects to trigger an OOME).