test now returns number of failures