refactored third test