fix bug & add unit test for pulselib