add getTranspose and tests