Fixed tests, to avoid reference problem. copy not used because may produce a lock issue.