tests for Input class