slight refactor to tab highlighting test