add spy object to test focus event