add memheap test case
add test_portal_device