Added logResult param to testType, testValue, testArrayForValue to log a pass message to the console.