Improved test coverage for security and validation.