B20901 integrate pulse metrics 

address reviewers' comment and added more tests for pulse changes.