adding a test case and calculating the std_n from raw data