Refactored testing for EC2.
Merge pull request #25 from JDong-rmn/EOPS-6294

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