removed error
implemented automatic testfile aquisition