MDL-18375 calendar: added PHPunit tests (amend this once done)