Made array wrapper in middleware composing proccess conditional to enable middleware per function and global
Added test