Added Oleg's generating test data method.