fixed test-targetresource & set-targetresource to compare task names pro...

...perly