We should add some tests that test the critical operations of the component. Close on click away, proper offset calculation, etc.