Add TDD for File API