Add test for dirname.
Add test for echo.