added tests
added tests
fixed bug in 'matrix'