Add test with add_opt