A Kernel Test for Quasi-independence