fixed test after preferences link moved
fixed two bugs - getting current preferences when there is no repo_id in the session, and reliably getting inherited defaults when the parent level preferences record doesn't exist