add test for __optionsclass__
fix options parsing from __optionsclass__