add test for checking extra options flag