[backend] Return dictionary instead of list for test results.