[SUREFIRE-1005] Fix test pattern matching in scanned dependencies