Fix tests and student route permissions