Add copy unit tests, fix #14