Adds test for ending transducer.
Added additional tests for ending