Test the excludePaths functionality.