Added error check for Chdir("./tests/").