reorganized files, fixed tests, added tests for CwdCommand and CdCommand