test_result: Rewrite TestResultLine_viewResultHistory

so that test result line does not need to be indexable
test result: create test results line in same order

This is in order for tests to have the same id on each test run
test result: make test result line non indexable