Finished unit test for shell.c