fix identity verification rendering

Added tests for pr #825 Fixes #824