filter filepath contains segment start with dot, and add test cases