Added test for new --copy-js behavior