While powering on the Z64 hold the "down" Button, now confirm with enter/square.
Now it first reads the cartridge's roms, then it test the save chip and finally it ckecks the RAM.
Be aware that you need a 4KB eeprom cart to successfully selftest the Z64. A 16KB eeprom cart will give you an cart read error.