Java 8 Exceptions tests