test samples using spec