some basic tests.
write mem tests.