Added tests for the focus of components