Implement IOC/dependency injection. This will help manage (circular) dependencies and in writing more modular automated test code.