reraise "wrong" errors in test function