Fix focus.js lint errors and improve test.
Test and fix focus manager popup handling.