added unit test pulse generator