fixed tests.
fixed inputArray