adding tests for onkeydown search and canceling ajax requests