write tests for option validators