Fix WebApi tests for new .json behaviour