Added some tests for repeated input.