redo .testClose() to handle input targets differently