empty matrix lib and tests