test for preserving URI