Testing for independence while allowing for probabilistic choice