Add allocating testcase for SharedMap