fix for issue https://github.com/angular-ui/ui-date/issues/44

updated with a new spec and ensure all existing specs pass