Factorize error
Minor gormatting
Fix previous commit that added test for when owner_id is not set
Fix previous bad factorizing, add tests for 'owner user_id not set'