Refactored prompt test structure.