Set up test and code directories.