Setup testing architecture for API