Add tests for directory changes.