Kyle unit tests

@krpeffer

Fixed up the date deal again