Additions for NSDate to calculate beginning & end of day
Fix tests failing near the end of day