Change the mem test

So this was apparently testing some interaction between IN and MEM.
Note that this probably suggests a bug, but I can't quite figure out
what to do with it...