Add test for opts