add id comparable test
fix onmessage return flag