got rid of "given { when {} }" because it emits a warning too and workaround is more ugly than a couple of "if"s