Fixed test bug on java error and added wddx as a return format.