renamed analyse_testrecord