A late deflected goal from James Coppinger saw Doncaster edge past Bradford 2-1 in their friendly match at Valley Parade.