Tests for directory-switching helpers
Implement directory switching helpers