Added matrix basic testing framework