move testing into script