fix test case as method inserts a target attribute