As root type the following command
Now move your mouse. If it writes junk characters on your screen then your mouse is working fine, just need to edit mouse device to /etc/sysmouse in /etc/X11/xorg.conf
To stop the junk characters after testing, press ctrl + c