better failure message in test