test for binary sequence inside matches