added file pattern parameter
Use pattern for file pattern
use pattern for test
Merge branch 'file_pattern'