_remove_input tes and fixes.
disconnect_inputs test and fixes. Some refactoring for disconnect method tests.