Add tests for Model.Collection#getDirs()
Add APIs for collections
Finish the pending tests