Date testing and eclipse exception handling checking