Added test case for multiple cores accessing shared memory.