add comet test and bug fix