updated test script for cairo
renamed test-canvas -> canvas-basic
added key-code variable in conio module
added error handling process