qemu.tests: Bring back missing tests code in cdrom.py

Some test code in this script was deleted by accident in
commit 2b5e0f6151419dd403d7f959e0492510f790b8e0. This patch
brings them back.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>