test/memzone: handle previously allocated memzones