Fix get_by test