added 'finished_func' to transform method
added tests for 'finished_func'