added chdir in test function in first.c to prevent it from exeuting a rm -f in the current working directory