Test refactored for clarity.