test cross loss layer