Fix return type of get_expected()