Added unit tests for determinant and trace methods