Improved testing of joystick.c