fixed matrix transpose, added frame counter to batch test