updated recent test logic