Gen Matrix Unit Tests