add test for __optionsclass__
fix options parsing from __optionsclass__
Fixed merge conflict by updating test into the new test format