tweaked functional tests to handle duplicate input