add in some tests for diary links and 'already done' pages

plus som small tweaks to code to allow the tests to run