Add type=file rule and test-cases.
Fixed [type=file][min], and add test-cases.
Add test case for [type=file][max].