added test for issue #615
fixes #615
added focus parameter, a global pattern that must be matched