A Kernel Test for Quasi-Independence