Fix subscription endpoint eror message
Fix test of endpoint and controller