Moved test result logic from NDTUtils to TestResults