ENH: Better test error throwing