Tests for create certificate from registers, certificate fixes