Added mem.rs to Makefile
Tweak test.rs to use event for syncing the memory read.