RNN-G: reimplement testOnSequenceData() to make it relevant to my problem