Finished testing clone matrix helper function