Tests and fix for required options