CB-8072 Adding tests for target key

https://issues.apache.org/jira/browse/CB-8072