remove replace for layername and add tests
use valid zxy