test transfer matrix