Realize Opacity helper and write tests