[src] Simple matrix_append_row implementation
[src][test] Making append row functionality more robust