added tests for DDP