extract getIncludedFiles. add test.