add testsuite and support generating zeros matrix