test cross entropy