added matrix tests
added prime tests