adapted AddFileTest to new file manipulation policy