You can simply do it like COPY test.txt /dest/test_renamed.txt without a trailing /.
If you put a trailing / like COPY test.txt /dest/test_2/, it will copy the test.txt file (with the same name, of course) into the directory at /dest/test_2/.