add test header dependency and fix mat targets