create SendInput helper function in test suite