I would suggest that you split this test sequence up into smaller test cases. Something like `test_cmd_cd`, `test_cmd_pwd`, etc would be better.