add test of raise
remove redundant type variable