Refactored EC2 tests to follow module structure for better coverage and flexibility.