Add some model tests
Implement creating and updating directories