Updated API tests and added DTOs.