enabled parameter "transpose" and added phpunit test.

Change-Id: Ibc8ab676cf4bf6534e9e050da9da35d9eebf17ff