Added tests for getting Java 8 LocalDate typeName

Refactored code to allow for testing getting the typeName for Java 8
LocalDate and LocalDateTime without requiring a Java 8 runtime. Also
added a unit test to hopefully get code coverage high enough to pass
minimum check.