matrix transpose and transpose test