add more tests for getopts