Removed redundant tests.
Fixed behavior when an option value type is specified.
Moved common tests to shared examples.