test: add opts tests