Refined tests to use block initialization.
Moved common to spec/support.
Simplified has_option.