Added code to check result and print test info.