Fixing up trainer test.