Implemented unittest for nan-filled event data. Fixed expansion of the
dataset for NaN filled version.