fix pass/fail variable

use fail instead of success when collecting pass/fail info for tests