improve test with options