MT#6195 api-tests: use is instead of ok

better diagnostics
MT#6195 API: rewrite: GET, PUT and PATCH implemented
MT#5599 fix role check