Test combination of optional and path