Adding test class for SharedHeap