add tests for focus and hover; fix tests