StudiesController: create links when necessary; add specs