Refactored brittle Agent specs.