Created some unit tests and implemented the cd command.