assert options is not undefined