add tests for invalid options
add whitespace around expression in if