test timing and input handling