[server][testOptionTermGenerator] Add assertions.