Added a gencode test, rewrote the Transcript conversion using flatMap