Added test case for static memory collection to different address spaces.