Create a better memory test

The old memory test didn't really do anything at all.  This one
actually stores some non-zero values.  Note that the code still works,
this is just a better test...