MDL-29478 unittest - explicity include blog/lib.php. Was causing "random" errors