refactored more matrix function sig tests