Added tests on ioctl function with siocinq option.