code to test real data with anomalies being normal data with one action removed