Add tests for compatible / incompatible options and fix errors revealed by it