Using an id rather than first-child to display the correct preferences tab

Also updated the preference test to assert that the preferences panel is
always displayed when openening the modal