Add tests for deepcopy.js