Merge "add test result/dashboard related unittests in testAPI and refactor its response"