Fixes latch ugen at audio rate and adds passing unit tests.