Test behaviour of identity and thrower function