added better tests of opts parameters