Improve error messages and tests

Issue-ID: NONRTRIC-814
Signed-off-by: elinuxhenrik <henrik.b.andersson@est.tech>
Change-Id: I70a877850ad9d5b2de96908f18d2351719c72099
6 files changed