Add test to ensure inputs aren't modified