typo and bug-fixing

Fixed a typo in case of unexpected success and a bug when reporting test
failures