Added LocalMemoryTest and updated LogicTest