Improve tests for any() and none().