fixed the scripts/deep_trainer

I brought it uptodate and added a unit test.