tests to ensure input is not modified