test all combinations of input.