fixed writing to memory, added failing PtraceProcess test as functional bar