Change the way staff only visibility state is calculated for the course outline and update tests