Added tests for is_self_signed