add focus() and a test for it