Implement common assert commands with tests. Fixes #8419. --------- Co-authored-by: Mate Farkas <Mate.Farkas@oneidentity.com>