[webapi] update assert true to assert equals