The function name in the raised exception is wrong for both of these