added a test for open(2)ing directories in write only mode.
added tests for reading command line arguments.
added the getcwd(2) system call.