Tests if the specified file is newer than the reference file.