Test function returning Option::None returns null to Java