Add test case for serializing shared users