Add Unit Tests to MemoryTarget class