Add tests for options
Allow to pass target in namevar